﻿#ifndef POSTCOMMAND_CMDSURFACEELECTRICFIELDMAPSIDEBARRESULTDATACHANGED_H
#define POSTCOMMAND_CMDSURFACEELECTRICFIELDMAPSIDEBARRESULTDATACHANGED_H

#include <QList>
#include "CommandManager/CommandBase.h"

namespace PostCommand
{
    /// @brief 后处理保存图像命令
    class CmdSurfaceElectricFieldMapSidebarResultDataChanged : public CommandManager::CommandBase
    {
        Q_OBJECT

    public:
        CmdSurfaceElectricFieldMapSidebarResultDataChanged();
        ~CmdSurfaceElectricFieldMapSidebarResultDataChanged();

        bool execute() override;
        void undo() override;
        void redo() override;

        void setSurfaceElectricFieldMapSidebarResultDataChanged(int windowId, int index);

    private:
        int m_windowId;
        int m_index;
    };
} // namespace PostCommand

#endif
